#ifndef __UART_H__
#define __UART_H__


/* ============================================================== */
#define FOSC 11059200L // System frequency
#define BAUD 9600      // UART baudrate

/*Define UART parity mode*/
#define NONE_PARITY 0  // None parity
#define ODD_PARITY 1   // Odd parity
#define EVEN_PARITY 2  // Even parity
#define MARK_PARITY 3  // Mark parity
#define SPACE_PARITY 4 // Space parity

#define PARITYBIT EVEN_PARITY // Testing even parity

void uartInitial(void);
extern void SendData(unsigned char dat);
extern void SendString(char *s);
extern unsigned char isRxFlag(void);
extern void clearRxFlag(void);
/* ============================================================== */


#endif //__UART_H__
